<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditFeedItem">
	<model>
		<instance>
			<tblContent>
				<nContentKey/>
				<nContentPrimaryId/>
				<nVersion/>
				<cContentForiegnRef/>
				<cContentName/>
				<cContentSchemaName>FeedItem</cContentSchemaName>
				<cContentXmlBrief>
					<Content>
            <guid/>
            <url/>
						<Title/>
            <Body/>
            <Link/>
						<PublishDate/>
            <Category domain=""/>
            <Document url="" length="" type=""/>
						<Images>
							<img class="thumbnail"/>
						</Images>
					</Content>
				</cContentXmlBrief>
				<cContentXmlDetail>
					<Content/>
				</cContentXmlDetail>
				<nAuditId/>
				<nAuditKey/>
				<dPublishDate/>
				<dExpireDate/>
				<dInsertDate/>
				<nInsertDirId/>
				<dUpdateDate/>
				<nUpdateDirId/>
				<nStatus>1</nStatus>
				<cDescription/>
			</tblContent>
		</instance>
		<submission id="EditFeedItem" action="" method="post" event="return form_check(this)"/>
		<bind nodeset="tblContent">
			<bind id="cTitle" nodeset="cContentName" required="true()" type="string"/>
      <bind id="dPublishDate" nodeset="dPublishDate" required="false()" type="string"/>
			<bind id="dExpireDate" nodeset="dExpireDate" required="false()" type="string"/>
			<bind id="nStatus" nodeset="nStatus" required="true()" type="string"/>
			<bind nodeset="cContentXmlBrief/Content">
				<bind id="dPublishDate" nodeset="PublishDate" required="false()" type="string"/>
				<bind id="cContentThumbnail" nodeset="Images/img[@class='thumbnail']" required="false()" type="xml-replace"/>
        <bind id="cGuid" nodeset="guid" required="false()" type="string"/>
        <bind id="cBody" nodeset="Body" required="false()" type="string"/>
        <bind id="cLink" nodeset="Link" required="false()" type="string"/>
        <bind id="dPublishDate" nodeset="PublishDate" required="false()" type="string"/>
        <bind id="cCategory" nodeset="Category" required="false()" type="string"/>
        <bind id="cCategorydomain" nodeset="Category/@domain" required="false()" type="string"/>
        <bind id="cDocumenturl" nodeset="Document/@url" required="false()" type="string"/>
        <bind id="cDocumentlength" nodeset="Document/@length" required="false()" type="string"/>
        <bind id="cDocumenttype" nodeset="Document/@type" required="false()" type="string"/>
      </bind>
		</bind>
	</model>
  <group ref="EditContent" class="2col">
    <label>Edit Feed Item</label>
    <group class="ContentColumn1">
      <group ref="Settings" class="leftSettings">
        <input bind="nContentKey" class="hidden">
          <label>ContentId</label>
        </input>
        <label>Settings</label>
        <input bind="dPublishDate" class="calendar short">
          <label>Publish Date</label>
        </input>
        <input bind="dExpireDate" class="calendar short">
          <label>Expire Date</label>
        </input>
        <select1 bind="nStatus" appearance="full" class="required vshort">
          <label>Status</label>
          <item>
            <label>Live</label>
            <value>1</value>
          </item>
          <item>
            <label>Hidden</label>
            <value>0</value>
          </item>
        </select1>
      </group>
      <group>
        <label>Images</label>
        <input bind="cContentThumbnail" class="short pickImage">
          <label>Thumbnail</label>
        </input>
      </group>
    </group>
    <group class="ContentColumn2">
      <group ref="Content" class="Content">
        <label>Feed Item Name</label>
        <input bind="cTitle" class="required long">
          <label>Name</label>
        </input>
      </group>
      <group>
        <label>Technical</label>
        <input bind="cGuid" class="short readonly">
          <label>ID</label>
        </input>
        <input bind="cLink" class="short">
          <label>Link</label>
        </input>
        <group>
          <label>Category</label>
          <input bind="cCategory" class="short">
            <label>Category</label>
          </input>
          <input bind="cCategorydomain" class="short">
            <label>Category Domain</label>
          </input>
        </group>
        <group>
          <label>Document</label>
          <input bind="cDocumenturl" class="short">
            <label>Document URL</label>
          </input>
          <input bind="cDocumentlength" class="short">
            <label>Document Length</label>
          </input>
          <input bind="cDocumenttype" class="short">
            <label>Document Type</label>
          </input>
        </group>
      </group>
      <group ref="Content" class="Content">
        <label>Description</label>
        <textarea bind="cBody" class="TextArea xhtml" rows="15" cols="70">
        </textarea>
      </group>

    </group>
  </group>
  <group ref="submit" class="contentSubmit">
    <submit submission="" ref="ewSubmit" class="principle">
      <label>Save Feed Item</label>
    </submit>
  </group>
</Content>
